package cn.dlc.com;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import cn.dlc.com.client.ZookeeperClient;


@SpringBootApplication
public class ZookeeperClientApplication {

	public static void main(String[] args) throws InterruptedException {
		
		SpringApplication.run(ZookeeperClientApplication.class, args);
 
		ExecutorService executorService = Executors.newFixedThreadPool(3);
		// 模拟多个客户端获取配置
		executorService.submit(new ZookeeperClient());
		executorService.submit(new ZookeeperClient());
		executorService.submit(new ZookeeperClient());
	}

}
